﻿namespace AY38910
{
    /// <summary>
    /// Bits (MSB to LSB) = Reset | BDIR | BC1
    /// </summary>
    public enum PsgAction
    {
        /// <summary>
        /// All pins set to LOW
        /// </summary>
        Inactive = 0x00,

        /// <summary>
        /// BC1 set to HIGH
        /// </summary>
        ReadFromPsg = 0x01,

        /// <summary>
        /// BDIR set to HIGH
        /// </summary>
        WriteToPsg = 0x02,

        /// <summary>
        /// BDIR and BC1 set to HIGH
        /// </summary>
        Latch = 0x0003,

        /// <summary>
        /// RESET pin set to HIGH (technically, set to low as it gets inverted to 0 on the Arduino).
        /// From a code perspective, we set it to true, on the hardware side, a logical 0 means reset.
        /// </summary>
        Reset = 0x0004
    }
}